package org.neuedu.chapter10_0705.demo01;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.HashMap;
import java.util.Map;

public class MapDemo01 {
    public static void main(String[] args) {
        Map map = new HashMap<>();
        map.put("java7", "20");
        map.put(1, "20");
        map.put(9.9, "20");
        map.put(false, "20");
        map.put("java7", "21");
        map.put(null, "22");
        System.out.println(map.get("java7"));
        System.out.println(map.size());
        System.out.println(map.containsKey("java7"));
        System.out.println(map.containsValue("20"));
        System.out.println(map.isEmpty());
        System.out.println(map.remove("java7"));
        System.out.println(map);
    }
}
